package com.ruoyi.supermarket.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 cart
 * 
 * @author 李其伟
 * @date 2023-08-14
 */
public class Cart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商品货号 */
    @Excel(name = "商品货号")
    private String sku;

    /** 商品货号 */
    @Excel(name = "商品货号")
    private String skuCode;

    /** 店铺主键 */
    @Excel(name = "店铺主键")
    private Long shopId;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 用户主键 */
    @Excel(name = "用户主键")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSku(String sku)
    {
        this.sku = sku;
    }

    public String getSku()
    {
        return sku;
    }
    public void setSkuCode(String skuCode)
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode()
    {
        return skuCode;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sku", getSku())
            .append("skuCode", getSkuCode())
            .append("shopId", getShopId())
            .append("number", getNumber())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .toString();
    }
}
